/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) xio.name 2006</p>
 * @author xio
 */
function NewActionListener(xiorkFlow) {
    this.xiorkFlow = xiorkFlow;
}

NewActionListener.prototype.actionPerformed = function (obj) {
    Message.setOutter(Toolkit.getElementByID("message"));

    //
    var designerDiv = Toolkit.getElementByID("designer");
	Toolkit.clearElement(designerDiv);
    var xiorkFlow = new XiorkFlow(designerDiv);
    xiorkFlow.setProcessList(window.dialogArguments);

	//
  //  document.body.onbeforeunload = function () {
    //    if (xiorkFlow.getWrapper().isChanged()) {
    	    //您对工作流程图的编辑尚未保存，离开该页面将退出系统!
      //      window.event.returnValue = "Exit design page!";
     //   }
  //  };
};